<?php
class Admin_Form_Page extends Zend_Form
{
	public function init()
	{
		$title=$this->createElement('text', 'title');
		$title->setLabel('Title:')->setRequired(true);
		$this->addElement($title);
		
		$position=$this->createElement('select','position');
		$position->setLabel('Position:')->addMultiOptions(array(1=>1,2=>2,3=>3,4=>4));
		$this->addElement($position);
		
		$content=$this->createElement('textarea', 'content');
		$content->setLabel('Content:')->setRequired(true);
		$this->addElement($content);
		
		$status=$this->createElement('select','status');
		$status->setLabel('Status:')->addMultiOptions(array(1=>"Enable",0=>"Disable"));
		$this->addElement($status);
		
		$submit=$this->createElement('submit', 'submit');
		$submit->setLabel('Submit');
		$this->addElement($submit);
		$id=$this->createElement('hidden', 'pageid');
		$this->addElement($id);
	}
}